package stud.mpgame.flash.net.description;

import stud.mpgame.flash.net.command.ArrowKeyCommand;

import stud.mpgame.network.MessageDescription;

/**
 * ...
 * @author sydy[sydyM6@gmail.com]
 */
class ArrowKeyMessageDescription extends MessageDescription {

	private static var ID:Int = IDescriptionManager.ARROW_KEY_MESSAGE_DESCRIPTION;

    private static var ARROW_KEY_USER_OBJECT_ID:Int = 1;
	
	private static var instance:ArrowKeyMessageDescription = null;

    public override function getID():Int {
        return ID;
    }
	
	public function new() {
		super();
		this.registerUserObject(ARROW_KEY_USER_OBJECT_ID, ArrowKeyCommand);
	}

    public static function getInstance():ArrowKeyMessageDescription {
        if(instance == null){
            instance = new ArrowKeyMessageDescription();
        }
        return instance;
    }
	
}